﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using 书易.Model;
using 书易.DAL;

namespace 书易.WEB
{
    public partial class ShanCSP : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (TradeDal.del(Convert.ToInt32(Request.QueryString["id"])) > 0)
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "", "alert('删除成功!');location.href='" + Request.QueryString["URL"] + "'", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "", "alert('删除失败!');location.href='" + Request.QueryString["URL"] + "'", true);
            }

        }
    }
}